package com.beck.code.generator;

import cn.hutool.core.io.resource.ResourceUtil;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;

import java.io.InputStream;

/**
 * @author CuiJianbo
 * @since 2025/7/1
 */
public class ParserEntityResolver implements EntityResolver {

    @Override
    public InputSource resolveEntity(String publicId, String systemId) {
        InputStream inputStream = ResourceUtil.getStream("beck-generator-config.dtd");
        return new InputSource(inputStream);
    }
}
